<?php
namespace Home\Controller;
use Think\Controller;
class BaseController extends Controller {
	public $user;
    public function __construct(){
    	parent::__construct();
    	$session=session("user");
		if(!$session)
		{
			$this->error("请先登录",U("login/login"),2);
		}
		$this->user=$session;
    	//echo "1";die;

    }
}?>